package com.haixiaoke.saas.repository.mapper;

import com.haixiaoke.saas.repository.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Dell
 * @Date 2023/10/13
 **/
@Mapper
public interface UserMapper {

    int updateMobileDevicesId(@Param("mobileDevicesId") String mobileDevicesId, @Param("userId") String userId);

    List<User> selectMobileDevicesIdByOrgId(Long orgId);

    List<User> selectUserByTypeAndOrgId(@Param("type") Integer type, @Param("orgId") Long orgId);

    User selectUserByUserId(String userId);

    String selectDepartmentByUserId(String depId);
}
